package com.share.barter.data.services.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.share.barter.data.BarterMapper;
import com.share.barter.data.services.BarterService;
/**
 * 
 * @author Tumi
 *
 */
@Service("BarterServices")
@SuppressWarnings("unchecked")
public class BarterServiceImpl implements BarterService{
	
	@Autowired BarterMapper BarterMapper;//Spring注入
	
	public List view() throws Exception {
		// 获取List
		List list = BarterMapper.FindAll();
		System.out.print("BarterServices");
		System.out.print(list.size());
		
		return list;
	}
	

}
